package com.itextpdf.local.ess.PDFLocation;

public class XYLocation implements PDELocation{
    //内容
    private String content;
    //x坐标
    private float X;
    //y坐标
    private float Y;
    //宽度
    private double width;
    //高度
    private double height;
    //所在页码
    private int pageNum;

    public XYLocation(float x, float y, int pageNum) {
        X = x;
        Y = y;
        this.pageNum = pageNum;
    }

    public XYLocation(String content, float x, float y, double width, double height, int pageNum) {
        this.content = content;
        X = x;
        Y = y;
        this.width = width;
        this.height = height;
        this.pageNum = pageNum;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public float getX() {
        return X;
    }

    @Override
    public float getY() {
        return Y;
    }

    @Override
    public double getWidth() {
        return width;
    }
    @Override
    public double getHeight() {
        return height;
    }

    @Override
    public int getPageNum() {
        return this.pageNum;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @Override
    public void setX(float x) {
        X = x;
    }
    @Override
    public void setY(float y) {
        Y = y;
    }

    public void setWidth(double width) {
        this.width = width;
    }


    public void setHeight(double height) {
        this.height = height;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }



}
